/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 * @flow
 */

import React, {Component} from 'react';
import {Platform, SafeAreaView, ScrollView, StyleSheet, Text, View} from 'react-native';
import Index from "./component/index/Index";
import LinearGradient from "react-native-linear-gradient";
import Boutique from "./component/Boutique/Boutique";
import {createStackNavigator, createAppContainer} from 'react-navigation'
import Buy99 from "./component/Buy99/Buy99";
import Recommendation from "./component/Recommendation/Recommendation";


const instructions = Platform.select({
    ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
    android:
    'Double tap R on your keyboard to reload,\n' +
    'Shake or press menu button for dev menu',
});

type Props = {};
export default class App extends Component<Props> {
    render() {
        return (

            <AppContainer navigator={this.props.navigator}/>

        );
    }
}
const RootStacks = createStackNavigator({

        index: {
            screen: Index,
            navigationOptions: {
                header: null,
                headerTintColor: "#f04",
                headerBackTitle: null
            }
        },
        boutique: {
            screen: Boutique,
            navigationOptions: {
                headerTintColor: "#f04",
                title: "精选好货",
                // headerStyle:{
                //     backgroundColor:"rgba(178,178,178,0.1)"
                // }
            }
        },
        buy99: {
            screen: Buy99,
            navigationOptions: {
                headerTintColor: "#f04",
                title: "9.9元包邮",
            }
        },
        recommendation: {
            screen: Recommendation,
            navigationOptions: {
                headerTintColor: "#f04",
                title: "全网优选",
                tintColor:"#ff0",
                // headerStyle:{
                //     backgroundColor:"rgba(178,178,178,0.1)"
                // }
            }


        }
    },
    {
        initialRouteName: 'index',
        headerMode: 'screen',
    });

const AppContainer = createAppContainer(RootStacks);
